﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace Config
{
    public class omplconfig_detail:BaseNode
    {
        public omplconfig_detail(XmlNode node):base(node)
        {
            
        }
        public ChannelList Omaplchannels
        {
            get
            {
                XmlNode node = _xmlNode.SelectSingleNode("omaplchannels");
                if (node == null)
                    node = _xmlNode.AppendChild(_xmlDoc.CreateElement("omaplchannels"));
                return new ChannelList(node);
            }
        }
        public ChannelRotationList omplconfig_rotationchannels
        {
            get
            {
                XmlNode node = _xmlNode.SelectSingleNode("omplconfig_rotationchannels");
                if (node == null)
                    node = _xmlNode.AppendChild(_xmlDoc.CreateElement("omplconfig_rotationchannels"));
                return new ChannelRotationList(node);
            }
        }
        public TestPointList omplconfig_testpos
        {
            get
            {
                XmlNode node = _xmlNode.SelectSingleNode("omplconfig_testpos");
                if (node == null)
                    node = _xmlNode.AppendChild(_xmlDoc.CreateElement("omplconfig_testpos"));
                return new TestPointList(node);
            }
        }
        public TestPoint3DList omplconfig_testpos_shock
        {
            get
            {
                XmlNode node = _xmlNode.SelectSingleNode("omplconfig_testpos_shock");
                if (node == null)
                    node = _xmlNode.AppendChild(_xmlDoc.CreateElement("omplconfig_testpos_shock"));
                return new TestPoint3DList(node);
            }
        }
    }
}
